package com.jierui.meter.frontend.service.impl;

import com.jierui.meter.frontend.domain.DO.TgStatusDO;
import com.jierui.meter.frontend.mapper.TgStatusMapper;
import com.jierui.meter.frontend.service.TgStatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @description:
 * @author: wangjingjing
 * @creat: 2021-07-07 18:28
 */
@Service
public class TgStatusServiceImpl implements TgStatusService {

    @Autowired
    TgStatusMapper tgStatusMapper;


    @Override
    public TgStatusDO selectByTgId(String tgId, String year) {
        TgStatusDO tgStatusDO = tgStatusMapper.selectByTgId(tgId, year);
        if (tgStatusDO == null) {
            return new TgStatusDO();
        }
        return tgStatusDO;
    }
}
